
import obj.Bazoka;
import obj.Pistol;
import obj.Senjata;
import obj.Tentara;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Student
 */
public class Tester {
    public static void main(String[] args){
        Senjata s = new Senjata();
        Tentara t = new Tentara();
        
        s = new Pistol();       
        
        t.setSenjata(s);
        t.menembak();
    }
}
